package com.yoomiito.app.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class VideoInfo implements Parcelable {

    private String duration;//时长
    private String width;
    private String height;
    private String url;
    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "VideoInfoUtil{" +
                "duration='" + duration + '\'' +
                ", width='" + width + '\'' +
                ", height='" + height + '\'' +
                ", url='" + url + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.duration);
        dest.writeString(this.width);
        dest.writeString(this.height);
        dest.writeString(this.url);
    }

    public VideoInfo() {
    }

    protected VideoInfo(Parcel in) {
        this.duration = in.readString();
        this.width = in.readString();
        this.height = in.readString();
        this.url = in.readString();
    }

    public static final Parcelable.Creator<VideoInfo> CREATOR = new Parcelable.Creator<VideoInfo>() {
        @Override
        public VideoInfo createFromParcel(Parcel source) {
            return new VideoInfo(source);
        }

        @Override
        public VideoInfo[] newArray(int size) {
            return new VideoInfo[size];
        }
    };
}
